#include <stdio.h>

void testArray0(int *arr);
void testArray1(int arr[]);

int main()
{
  int arr[] = {1, 2, 3, 4, 5};
  printf(" arr =%p\n", arr);
  printf("sizeof(arr)=%lu\n", sizeof(arr));
  printf("arr[0]=%d\n", arr[0]);
  printf("\n");

  testArray0(arr);
  printf("arr[0]=%d\n", arr[0]);

  printf("\n");

  testArray1(arr);
  printf("arr[0]=%d\n", arr[0]);
  return 0;
}

void testArray0(int *arr)
{
  arr[0] = 10;
  printf("*arr =%p\n", arr);
  printf("sizeof(arr)=%lu\n", sizeof(*arr));
  printf("testArray0 arr[0] %d == %d\n", arr[0], *arr);
}

void testArray1(int arr[])
{
  arr[0] = 20;
  printf("arr[]=%p\n", arr);
  printf("sizeof(arr)=%lu\n", sizeof(arr));
}
